package com.pn.warehouse.mapper;

import com.pn.warehouse.entity.ProductType;

import java.util.List;

public interface ProductTypeMapper {

    //查询所有的商品分类
    public List<ProductType> findAllProductType();

    //根据分类编码或者分类名称查询商品的分类
    public ProductType findTypeByCodeOrName(ProductType productType);

    //添加商品的分类
    public int insertProductType(ProductType productType);

    //根据id或父级id删除分类
    public int removeProductType(Integer typeId);

    //根据id修改分类
    public int setProductTypeById(ProductType productType);

}
